package com.example.feign.clients;

import com.example.feign.pojo.UserResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user-service")
public interface UserClient {
	@GetMapping("/users/query/{id}")
	UserResponse findById(@PathVariable("id")String id);
}
